package game.roles.enemys;


import game.utils.ImageChange;

import java.awt.*;
import java.util.Random;

/**
 * @author liuyulai
 * Created with IntelliJ IDEA.
 * Date: 21.5.7
 * Time: 16:50
 * Description: 小兵2
 */
public class Solider2 extends EnemyRole {
    public static Image[] solider2;

    private ImageChange rm = new ImageChange(3);

    public Solider2() {
        super(new Random().nextInt(2000), -200 + (int) (Math.random() * 50), 100, 100, 150, 40);
    }

    @Override
    public void rolesMove() {
        this.y += 3;
        this.img = rm.change(solider2);
    }
}
